from DrissionPage import ChromiumPage,ChromiumOptions,SessionOptions

co=ChromiumOptions()
so=SessionOptions().set_cookies()

page = ChromiumPage()

# page.get('http://www.baidu.com')
page.get('http://gitee.com')

def test():
    for i in page.cookies(as_dict=False, all_domains=False):
        if 'gitee.com' in i['domain']:
            print(i)
        # print(i)    
test()

if input('go on ?')=='y':
    test()
else:
    pass    